package object3.package3;

public class Frog extends Animal implements IAmphibian{
    public Frog(String name) {
        super(name);
    }

    @Override
    public void run() {
        System.out.println(name + "正在用四条腿条跑");
    }

    @Override
    public void swim() {
        System.out.println(name + "正在用四条腿游泳");
    }
}
